<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // includes
        const mingzhu = ['西游记', '三国演义', '水浒传']
        // 判断
        console.log(mingzhu.includes('西游记'));//true
        console.log(mingzhu.includes('金瓶梅'));//false
        // indexof也能判断
        console.log(mingzhu.indexOf('西游记'));//存在返回0
        console.log(mingzhu.indexOf('金瓶梅'));//不存在返回-1

        // **
        console.log(2 ** 10);//1024
        console.log(Math.pow(2,10));//1024
    </script>
</body>

</html>